import axios from "axios";
import request from "@/utils/request";

const localhostRequest = `http://127.0.0.1:4523/m1/3368633-0-default`

export function listDoctor(query) {
  return axios.get(localhostRequest+'/doctor/list')
}

// 查询医生详细
export function getDoctor(id) {
  return axios.get(localhostRequest+'/doctor/:' + id)
}

// 新增医生
export function addDoctor(data) {
  return request({
    url: '/system/doctor',
    method: 'post',
    data: data
  })
}

// 修改医生
export function updateDoctor(data) {
  return axios.put(localhostRequest+'/doctor',data)
}

// 删除医生
export function delDoctor(id) {
  return axios.delete(localhostRequest+'/doctor/:' + id)
}
